home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / HPACK78S.ZIP / frontend.h < prev    next >
C/C++ Source or Header  |  1992-11-15  |  3KB  |  77 lines

  1. /****************************************************************************
  2. *                                                                            *
  3. *                            HPACK Multi-System Archiver                        *
  4. *                            ===========================                        *
  5. *                                                                            *
  6. *                        Header File for the Main Archiver Code                *
  7. *                            FRONTEND.H  Updated 09/05/92                    *
  8. *                                                                            *
  9. * This program is protected by copyright and as such any use or copying of    *
  10. *  this code for your own purposes directly or indirectly is highly uncool    *
  11. *                      and if you do so there will be....trubble.                *
  12. *                 And remember: We know where your kids go to school.            *
  13. *                                                                            *
  14. *        Copyright 1991 - 1992  Peter C.Gutmann.  All rights reserved        *
  15. *                                                                            *
  16. ****************************************************************************/
  17.  
  18. /* The extensions used for HPACK archives, and used to match HPACK archives */
  19.  
  20. extern char HPAK_EXT[];
  21. extern char HPAK_MATCH_EXT[];
  22.  
  23. /* The distance in bytes to the next piece of data to handle */
  24.  
  25. extern long skipDist;
  26.  
  27. /* The name of the archive currently being processed */
  28.  
  29. extern char archiveFileName[];
  30.  
  31. /* Some general vars */
  32.  
  33. extern WORD flags;            /* Various flags set by the user */
  34. extern WORD dirFlags;        /* Directory-handling flags set by the user */
  35. extern WORD overwriteFlags;    /* Overwrite-on-extract flags */
  36. extern WORD viewFlags;        /* Options for the View command */
  37. extern WORD xlateFlags;        /* Options for output translation */
  38. extern WORD commentType;    /* The type of the archive comment */
  39. extern BOOLEAN archiveChanged;    /* Whether the archive has been changed */
  40. extern BOOLEAN firstFile;    /* Whether this is first file we're processing */
  41. extern char basePath[];        /* The output directory given by the -b option */
  42. extern int basePathLen;        /* The length of the basePath */
  43. extern int screenHeight, screenWidth;    /* The screen size */
  44. extern char *signerID;        /* userID of archive signer */
  45. extern char *mainUserID;    /* userID of main PKE destination */
  46. extern char *secUserID;        /* userID of secondary PKE destination */
  47.  
  48. /* The structs to handle the filepath/filename info */
  49.  
  50. typedef struct FN {
  51.                   struct FN *next;        /* The next node in the list */
  52.                   char *fileName;        /* The actual fileName */
  53.                   BOOLEAN hasWildcards;    /* Whether filename has wildcards */
  54.                   } FILENAMEINFO;
  55.  
  56. typedef struct FP {
  57.                   struct FP *next;        /* The next node in the list */
  58. #if defined( __ARC__ ) || defined( __VMS__ )
  59.                   char *node;            /* The node the path is on */
  60. #endif /* __ARC__ || __VMS__ */
  61.                   char *device;            /* The device the path is on */
  62.                   char *filePath;        /* The filePath */
  63.                   FILENAMEINFO *fileNames;    /* List of files on this path */
  64.                   BOOLEAN hasWildcards;    /* Whether filepath has wildcards */
  65.                   } FILEPATHINFO;
  66.  
  67. /* The start of the list of fileSpecs */
  68.  
  69. extern FILEPATHINFO *filePathListStart;
  70.  
  71. /* Prototypes for functions in FRONTEND.C */
  72.  
  73. BOOLEAN addArchiveName( char *archiveName );
  74. void freeArchiveNames( void );
  75. void wipeFilePaths( void );
  76. void handleArchive( void );
  77.